<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JNDI</title>
</head>
<body>
<form action="BindServlet" method="get">
  <label for="bindName">绑定名</label>
  <input type="text" id="bindName" name="bindName"></input>
  <label for="bindValue">绑定值</label>
  <input type="text" id="bindValue" name="bindValue"></input>
  <input type="submit" formmethod="post" formaction="BindServlet" value="绑定"></input>
  <input type="submit" formmethod="post" formaction="SerchBindServlet" value="查询"></input>
  <input type="submit" formmethod="post" formaction="reBindServlet" value="重新绑定"></input>
  <input type="submit" formmethod="post" formaction="unbindServlet" value="解除绑定"></input>
  
</form>

<%
	if(request.getParameter("bindName")!=null&&request.getParameter("bindValue")!=null)
	{
		out.print("绑定结果:");
	}
	%>

</body>
</html>